/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.gae.shared;
import java.io.Serializable;

import javax.jdo.annotations.Extension;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

/**
 *
 * @author Damador
 */
@PersistenceCapable
public class Compte implements Serializable{
    
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String idCompte;
    private double montant;
	private Utilisateur user;
    
	public Compte(){
	}
	
    @Persistent(mappedBy = "compte")
    public Utilisateur getUser() {
		return user;
	}


	public void setUser(Utilisateur user) {
		this.user = user;
	}

    /**
     * Get the value of montant
     *
     * @return the value of montant
     */
    @Persistent
    public double getMontant() {
        return montant;
    }

    /**
     * Set the value of montant
     *
     * @param montant new value of montant
     */
    public void setMontant(double montant) {
        this.montant = montant;
    }

    
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	@Extension(vendorName = "datanucleus", key = "gae.encoded-pk", value = "true")
    public String getIdCompte() {
        return idCompte;
    }
	

    public void setIdCompte(String idCompte) {
        this.idCompte = idCompte;
    }
    
}
